package com.ruoyi.channel.mapper;

import com.ruoyi.channel.domain.ChannelUserNumber;
import com.ruoyi.channel.domain.TChannelDataStaff;
import com.ruoyi.channel.domain.vo.TChannelDataStaffVo;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 渠道数据管理员业务员配置Mapper接口
 *
 * @author ruoyi
 * @date 2023-11-01
 */
public interface TChannelDataStaffMapper extends BaseMapperPlus<TChannelDataStaffMapper, TChannelDataStaff, TChannelDataStaffVo> {


    List<TChannelDataStaffVo> staffVo(@Param("type") String type, @Param("channelDataId") Long channelDataId);

    /**
     * 退算渠道下个客户信息 (暂不使用)
     * @param channelDataId
     * @param userId
     * @return
     */
    ChannelUserNumber getChannelNextUser(@Param("channelDataId") Long channelDataId, @Param("userId") Long userId, @Param("channelSource") String channelSource);

    /**
     * @param channelDataId  可分配人员总数
     * @param channelSource  渠道来源
     * @return
     */
    List<ChannelUserNumber> getChannelUser(@Param("channelDataId") Long channelDataId, @Param("channelSource") String channelSource);

}
